import java.util.logging.Logger;

public class AppTest 
{
  public static void main(String[] args) throws Exception 
  {
    Logger logger = Logger.getLogger(AppTest.class.toString());
    ICalculationArea calculationArea = new CalculationArea();
    {
      // 计算面积，长方形
      double rectangle = calculationArea.rectangle(4, 6);
      logger.info("长方形面积：" + rectangle);
      // 计算面积，三角形
      double triangle = calculationArea.triangle(3, 4, 5);
      logger.info("三角形面积：" + triangle);
      // 计算面积，圆形
      double circular = calculationArea.circular(5);
      logger.info("圆形形面积：" + circular);
    }
    
    ICalculationArea calculationAreaExt = new CalculationAreaExt();
    {
      logger.info("长方形面积：" + calculationAreaExt.rectangle(5, 6));
      logger.info("三角形面积：" + calculationAreaExt.triangle(3, 4, 5));
      logger.info("圆形形面积：" + calculationAreaExt.circular(5));
    }
  }
}
